﻿<p>
    This example shows how Telerik DatePicker for ASP.NET MVC is being validated through the built-in server-side validation capabilities of ASP.NET MVC.
</p>
<pre class="prettyprint">

&lt%= Html.ValidationSummary() %&gt;
&lt% using (Html.BeginForm("Action", "Controller")) { %&gt
    &lt%= Html.Telerik().DatePicker()
            .Name("deliveryDate")
    %>
    &lt%= Html.ValidationMessage("deliveryDate", "*") %&gt
    &lt;input type="submit" value="Post" /&gt
<% } %>
</pre>
<p>
    Additionally you can use <em>DatePickerFor</em> extension in order to create DatePicker for a concrete <em>Model property</em>.
    If it has <strong>Range</strong> attribute, DatePicker component will use it to define min and max date
    contraints.
</p>